Component({

  properties: {
    item: {
      type: Object,
      value: {}
    }
  },
  options: {
    styleIsolation: 'apply-shared'
  },
  data: {

    // 这里是一些组件内部数据
  },

  methods: {
    nav () {
      if (this.data.item.status_name === '维护中') {
        wx.showToast({
          title: '场馆维护中',
          icon: 'none',
          duration: 2000
        })
        return false
      }
      wx.navigateTo({
        url: `/pages/sportsDetail/index?id=${this.data.item.id}`
      })
    }
  }

})
